package com.feature.learn.concurrent.Semaphore.sampe1;

/**
 *
 * @author 01390942
 * @Description
 * @create 2021/7/5
 * @since 1.0.0
 */
public class Semaphore2Test {
    public static void main(String[] args) {
        Semaphore2Service service2 = new Semaphore2Service(6);

        for (int i = 0; i < 10; i++) {
            Service2Thread service2Thread = new Service2Thread("service2Thread" + i, service2);
            service2Thread.start();
            service2.printInfo();
        }
    }
}